﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<PagedList<CourseSystem.Core.Entities.StudentNoteInfo>>" %>
<%@ Import Namespace="CourseSystem.Common.Helpers" %>
<%@ Import Namespace="Webdiyer.WebControls.Mvc" %>
  <table width="50%" height="2" border="0" align="center" cellpadding="0" cellspacing="0"
                                            bordercolor="#FFFFFF">
                                            <tr>
                                                <td bgcolor="#FFFFFF">
                                                </td>
                                            </tr>
                                        </table>
<table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#CCCCCC">
    <tr>
        <td width="76" height="25" bgcolor="#D1E5F0">
            <div align="center" class="style13">
                序号</div>
        </td>
        <td width="558" bgcolor="#D1E5F0">
            <div align="center">
                <span class="style5">内容</span></div>
        </td>
        <td width="202" bgcolor="#D1E5F0">
            <div align="center">
                <span class="style13">时间</span></div>
        </td>
         <td width="100" bgcolor="#D1E5F0">
            <div align="center">
                <span class="style13">操作</span></div>
        </td>
    </tr>
    <% int i = 1;

       foreach (var item in Model)
       {%>
    <tr class="style1">
        <td height="25">
            <div align="center">
                <%=i++ %></div>
        </td>
        <td>
            <div align="left">
                <%=TextHelper.DisplayText(item.NoteContent,40) %></div>
        </td>
        <td>
            <div align="center">
                <%=item.NoteTime.ToString("yyyy-MM-dd HH:mm") %></div>
        </td>
        <td>
            <div align="center">
           <a onclick="editClickA('<%=item.Id %>')" class="black" href="javascript:;">编辑</a>
               <%=Html.ActionLink("删除", "NoteDel", new { item.Id }, new {@class="black", onclick = "return confirm('确定删除?')" })%>
               </div>
        </td>
    </tr>
    <% } %>
</table>
<table width="98%" height="7" border="0" align="center" cellpadding="0" cellspacing="0"
    bordercolor="#FFFFFF">
    <tr>
        <td class="gray12">
            &nbsp;
        </td>
        <td align="right" class="gray12">
            <%=Html.AjaxPager(Model, new PagerOptions() { ContainerTagName = "span", CssClass = "mvcPager", PageIndexParameterName = "pid", ShowMorePagerItems = false, AlwaysShowFirstLastPageNumber = true, }, new AjaxOptions() { UpdateTargetId = "listDiv" })%>
            共<%=Model.TotalItemCount %>条记录，页<%=Model.CurrentPageIndex %>/<%=Model.TotalPageCount %>
        </td>
    </tr>
</table>
